package com.example.springboot.freemarker.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import java.util.Map;

/**
 * @desc
 * @Author wangsh
 * @date 2018/5/5 15:13
 */
@Controller
@RequestMapping("/freemarker")
public class FreemarkerConroller {

	@RequestMapping("/index")
	public String web(Map<String, Object> model) {
		model.put("message","freemar测试");
		model.put("content","测试freemar创建及如何取值");
		// 返回的内容就是templetes下面文件的名称
		return "index";
	}
}